﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace LinqToBing.Bing.Wrapper.Enums
{
    /// <summary>
    /// Enum that identify the protocol to use for the search.
    /// </summary>
    /// <remarks>This values cannot be combined.</remarks>
    /// <see cref="http://msdn.microsoft.com/en-us/library/dd250909.aspx"/>
    [DefaultValue(SearchProtocol.XML)]
    public enum SearchProtocol
    {
        /// <summary>
        /// Unknown value is not really present in Bing, but added here for application management.
        /// </summary>
        Unknown = -1,
        /// <summary>
        /// JSON protocol, ideal for an AJAX application.
        /// </summary>
        JSON = 0,
        /// <summary>
        /// XML protocol, ideal for any applications that support XML but do not support SOAP.
        /// </summary>
        XML = 1,
        /// <summary>
        /// SOAP protocol, ideal for applications developed with high level languages that have native SOAP library support.
        /// </summary>
        SOAP = 2
    }
}
